package com.mall.cms.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mall.cms.mapper.PrefrenceAreaMapper;
import com.mall.cms.service.PrefrenceAreaService;
import com.mall.model.domain.cms.PrefrenceArea;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PrefrenceAreaServiceImpl extends ServiceImpl<PrefrenceAreaMapper,PrefrenceArea> implements PrefrenceAreaService {

    @Autowired
    private PrefrenceAreaMapper prefrenceAreaMapper;

    @Override
    public List<PrefrenceArea> listAll() {
        List<PrefrenceArea> prefrenceAreaList = prefrenceAreaMapper.selectList(null);
        return prefrenceAreaList;
    }
}
